package com.example.demo.mqserver.core;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张
 * Date: 2024-07-10
 * Time: 19:34
 */
//交换机类型
public enum ExchangeType {
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);
    private final int type;
    ExchangeType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
